import request from "@/utils/request";

//智慧灯杆列表
export function GetDeviceLampList(query) {
  return request({
    url: "/admin/device.Lamp/index",
    method: "get",
    params: query,
  });
}

// 新增灯杆
export function AddDeviceLamp(query) {
  return request({
    url: "/admin/device.Lamp/add",
    method: "post",
    data: query,
  });
}

// 修改灯杆
export function EditDeviceLamp(query) {
  return request({
    url: "/admin/device.Lamp/edit",
    method: "post",
    data: query,
  });
}

// 删除灯杆
export function DeleteDeviceLamp(query) {
  return request({
    url: "/admin/device.Lamp/delete",
    method: "post",
    data: query,
  });
}
